{%- if site.analytics.baidu.base_id -%}
<!-- Global site tag (gtag.js) - Baidu Analytics -->
<script>
  var _hmt = _hmt || [];
  (function () {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?{{ site.analytics.baidu.base_id }}";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
  })();
</script>
{%- endif -%}